FUNCTION

json.get

pure function get(index: integer): json

Get the element at the specified index of this JSON array.

json_array.get(index) is equivalent to json_array[index].

Parameters

  • index — the array index

Throws

  • exception — if this JSON value is not an array
  • exception — if the specified index is out of bounds

Since

0.14.16


pure function get(key: text): json

Get the member with the specified key in this JSON object.

json_object.get(key) is equivalent to json_object[key].

Parameters

  • key — the object key

Throws

  • exception — if this JSON value is not an object
  • exception — if the specified key is not found in this object

Since

0.14.16

© 2026 Chromia